package com.hanamaki.oop.demo03;

import java.util.Scanner;

public class Application {

    public static void main(String[] args) {

//        new  new的是什么？
        /*
        * new的是一个类中的构造方法
        * */
        Person person = new Person();

        System.out.println(person.name);


        Pet cat = new Pet();
        cat.name = "Tom";
        cat.say();

        Pet dog = new Pet();
        dog.name = "来福";
        dog.say();

    }
}
